$(document).ready(function () {

    // 插入系统公告
    $("#btn_system_tip").click(function () {
        $.ajax({
            type: "GET",
            url: "/airline/modifysystemtip",
            contentType: "application/json; charset=utf-8",
            timeout: 2000,
            cache: false,
            beforeSend: function () {
                console.log("btn_system_tip beforeSend")
            },
            complete: function () {
                console.log("btn_system_tip complete")
            },
            error: function (XMLHttpRequest, textStatus, errorThrown) {
                console.log("btn_system_tip error " + textStatus + " = " + errorThrown);
            },
            success: function (data, status) {
                alert(data)
            }
        });
    })

    // 插入航班信息
    $("#btn_flight_info").click(function () {
        $.ajax({
            type: "GET",
            url: "/airline/flightplayInfomation",
            contentType: "application/json; charset=utf-8",
            timeout: 2000,
            cache: false,
            beforeSend: function () {
                console.log("btn_flight_info beforeSend")
            },
            complete: function () {
                console.log("btn_flight_info complete")
            },
            error: function (XMLHttpRequest, textStatus, errorThrown) {
                console.log("btn_flight_info error " + textStatus + " = " + errorThrown);
            },
            success: function (data, status) {
                alert(data)
            }
        });
    })

    // 插入航班计划
    $("#btn_flight_play").click(function () {
        $.ajax({
            type: "GET",
            url: "/airline/flightplay",
            contentType: "application/json; charset=utf-8",
            timeout: 2000,
            cache: false,
            beforeSend: function () {
                console.log("btn_flight_play beforeSend")
            },
            complete: function () {
                console.log("btn_flight_play complete")
            },
            error: function (XMLHttpRequest, textStatus, errorThrown) {
                console.log("btn_flight_play error " + textStatus + " = " + errorThrown);
            },
            success: function (data, status) {
                alert(data)
            }
        });
    })

    // 插入特价机票
    $("#btn_special_ticket").click(function () {
        $.ajax({
            type: "GET",
            url: "/airline/specialTicket",
            contentType: "application/json; charset=utf-8",
            timeout: 2000,
            cache: false,
            beforeSend: function () {
                console.log("btn_special_ticket beforeSend")
            },
            complete: function () {
                console.log("btn_special_ticket complete")
            },
            error: function (XMLHttpRequest, textStatus, errorThrown) {
                console.log("btn_special_ticket error " + textStatus + " = " + errorThrown);
            },
            success: function (data, status) {
                alert(data)
            }
        });
    })

    // 插入会员专享
    $("#btn_member_zone").click(function () {
        $.ajax({
            type: "GET",
            url: "/airline/createmember",
            contentType: "application/json; charset=utf-8",
            timeout: 2000,
            cache: false,
            beforeSend: function () {
                console.log("btn_member_zone beforeSend")
            },
            complete: function () {
                console.log("btn_member_zone complete")
            },
            error: function (XMLHttpRequest, textStatus, errorThrown) {
                console.log("btn_member_zone error " + textStatus + " = " + errorThrown);
            },
            success: function (data, status) {
                alert(data)
            }
        });
    })
});